/*
 * @Date: 2023-02-11 19:18:57
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-24 14:58:53
 * @FilePath: \A19\backend\src\shared\protocols\Create\PtlCreateCourse.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { courses } from '../../types/courses';

export interface ReqCreateCourse extends BaseRequest {
    name: string
    cover?: {
        fileDate: Uint8Array,
        fileType: string
    },
    introduction: string
}

export interface ResCreateCourse extends BaseResponse {
    course:courses
}

export const conf: BaseConf = {
    needRole: 'teacher',
    needLogin: true
}